<?php
// +----------------------------------------------------------------------
// | 七牛云存储配置
// +----------------------------------------------------------------------

return [
    // 七牛云存储配置
    'access_key' => 'cbKpDtGTIF6pXU8lGbnvoMIdMQIpCANdn1sixT69',
    'secret_key' => '4HTz-BZEF_NRTmsYX8Kh-Uv_h8Fxq_wX7z5l4yI1',
    'bucket'     => 'yjgs',
    'domain'     => 'https://yjgs.jsonbug.com',
    'zone'       => 'z2', // 华南区域
    
    // 上传策略配置
    'upload_policy' => [
        'expires' => 3600, // token有效期（秒）
        'return_body' => '{"key":"$(key)","hash":"$(etag)","fsize":$(fsize),"bucket":"$(bucket)","name":"$(x:name)"}',
    ],
    
    // 支持的音频文件格式
    'supported_formats' => ['mp3', 'wav', 'm4a', 'aac', 'ogg'],
    
    // MIME类型映射
    'mime_types' => [
        'mp3' => 'audio/mpeg',
        'wav' => 'audio/wav',
        'm4a' => 'audio/m4a',
        'aac' => 'audio/aac',
        'ogg' => 'audio/ogg',
    ],
    
    // 文件上传路径规则
    'path_rule' => 'audio/room{room_id}/{date}/{uniqid}.{ext}',
    
    // 最大文件大小（字节）
    'max_file_size' => 50 * 1024 * 1024, // 50MB
];
